<style>
    .dsj_dydt > table > tbody > tr > td > input {
        width: 100px !important;
    }
</style>
<div class="body">
    <form class="form-horizontal" role="form" id="dydtform" name="dydtform"
          novalidate>
        <div class="table-responsive list-table-panel dsj_dydt">
            <div class="list-table-title">
                <div class="table-title">
                    党员动态数据维护
                </div>
                <div class="table-tool">
                    <button class="btn btn-default1" ng-click="addDYDT()">新增</button>
                    <button class="btn btn-primary" ng-click="saveDYDT(dydtform.$valid)" form="dydtform">保存</button>
                </div>
            </div>
            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                <thead>
                <tr>
                    <th>年度</th>
                    <th>转入（人次）</th>
                    <th>转出（人次）</th>
                    <th>其中内部接转（人次）</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="it in dydt_dataList">
                    <td ng-class="{ 'has-error' : invalidValue($index,dydtform,'dydt_nd') &&  dydtform.$submitted}"
                        align="center">
                        <input type="number" autocomplete="off" class="form-control" min="1999" step="1"
                               name="dydt_nd_{{$index}}"
                               ng-model="it.nd" ng-required="true"/>
                    </td>
                    <td ng-class="{ 'has-error' : invalidValue($index,dydtform,'dydt_zr') &&  dydtform.$submitted}"
                        align="center">
                        <input type="number" autocomplete="off" class="form-control" min="0" step="1"
                               name="dydt_zr_{{$index}}"
                               ng-model="it.zr" ng-required="true"/>
                    </td>
                    <td ng-class="{ 'has-error' : invalidValue($index,dydtform,'dydt_zc') &&  dydtform.$submitted}"
                        align="center">
                        <input type="number" autocomplete="off" class="form-control" min="0" step="1"
                               name="dydt_zc_{{$index}}"
                               ng-model="it.zc" ng-required="true"/>
                    </td>
                    <td ng-class="{ 'has-error' : invalidValue($index,dydtform,'dydt_qznbjz') &&  dydtform.$submitted}"
                        align="center">
                        <input type="number" autocomplete="off" class="form-control" min="0" step="1"
                               name="dydt_qznbjz_{{$index}}"
                               ng-model="it.nbjz" ng-required="true"/>
                    </td>
                    <td align="center">
                        <button class="btn td-btn bg-pink waves-effect"
                                ng-click="deleteDYDT($index)" title="删除">
                            <!--<i class="material-icons td-icon">delete_forever</i>-->
                            删除
                        </button>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </form>
</div>